﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JingQiao.Ads.Infrastructure.Data.LinqToSql.Repository
{
    using Domain.Model;
    using Domain.Model.DomainObject;
    using Domain.Model.Repository;

    public class AdvertisementRepository : BaseRepository<IAdvertisement>, IAdvertisementRepository
    {
        public AdvertisementRepository(IContext context)
            : base(context)
        {
        }

        public bool IsThrowed(int advertisementId)
        {
            return false;
        }

        public IAdvertisement FindById(int id)
        {
            Check.Argument.IsNotNegativeOrZero(id, "id");
            return null;
        }

        public PagedResult<IAdvertisement> FindAll(int pageSize, int pageIndex)
        {
            return null;
        }

        public PagedResult<IAdvertisement> FindByKeyWord(int pageSize, int pageIndex, string keyWord)
        {
            return null;
        }

        public int CountByKeyWord(string keyWord)
        {
            return 0;
        }

        public int CountAll()
        {
            return 0;
        }
    }
}
